<h1><?= ucfirst($title) ?></h1>
<div style="text-align: left">
    <?php
    $this->widget('zii.widgets.CListView', array(
        'dataProvider' => $dataProvider,
        'itemView' => '_singleContent', // refers to the partial view named '_post'
        'template' => '{items}{pager}',
        'pagerCssClass' => 'custom_pager',
        'itemsCssClass' => 'custom_items',
        'loadingCssClass' => 'custom_loading',
        'emptyText' => 'Brak materiałów.'
    ));
    ?>
</div>